<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/radardevice/upgrademanager/UpgradeFileManager.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/radardevice/upgrademanager/UpgradeFileManager.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '升级文件',
                name: 'upgrademanager/UpgradeFileManager',
                url: "/UpgradeFileManager/",
                sortName: "createTime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([[{"title":"文件名","field":"fileName"},{"title":"添加时间","field":"createTime","type":"datetime"}]]);
            const columns = ref([{field:'id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'fileName',title:'文件名',type:'string',width:220,require:true,align:'left',sort:true},
                       {field:'uType',title:'升级类型',type:'int',bind:{ key:'UpgradeType',data:[]},width:120,align:'left'},
                       {field:'filePath',showOverflowTooltip:'true',title:'文件路径',type:'string',width:320,require:true,align:'left'},
                       {field:'createTime',title:'添加时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'remarks',showOverflowTooltip:'true',title:'备注',type:'string',width:220,align:'left'},
                       {field:'CreateId',title:'添加者Id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Creator',title:'添加者',type:'string',width:100,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
